package oj;

public class Day9S {
    public int addAB(int A, int B) {
        int a=0;
        int b=0;
        while (B!=0) {
            a = A ^ B;
            b = (A & B) << 1;
            A = a;
            B = b;
        }
        return A;
    }
}
